package ooday03homework;

public class Chick extends Animal{
    /*
    Chick() {

    }

    Chick(String name, int age, String color) {
        super(name, age, color);
    }

    void eat() {
        System.out.println("小鸡"+name+"在吃东西"+"颜色是"+color+"年龄是"+age);
    }

    void layEggs() {
        System.out.println("小鸡"+name+"在下蛋");
    }

     */
    Chick() {

    }

    Chick(String name, int age, String color) {
        super(name,age,color);
    }

    void layEggs() {
        System.out.println(name+"小姐在下蛋");
    }

    void eat() {
        System.out.println(name+"小鸡年龄是"+age+"毛发颜色是"+color);
    }
}
